package com.homework.g2021;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * 口罩增强类
 * @author weixingtk
 *
 */
public class MaskAspect implements MethodInterceptor{

	@Override
	public Object invoke(MethodInvocation mi) throws Throwable {
		wear();
		Object obj = mi.proceed();
		log();
		return obj;
	}
	public void wear(){
		System.out.println("带口罩...");
	}
	public void log(){
		System.out.println("记日志...");		
	}

}
